package com.eis.sap.in.connector.parameter;

import java.util.List;

import com.eis.thirdsys.connector.parameter.ParameterElement;
import com.eis.thirdsys.connector.parameter.ParameterType;

public enum SapParameterDefine {
	parameterName("Parameter Name", ParameterType.text, null, 1),
	parameterType("Parameter Type", ParameterType.select, SelectOptions.SELECT_OPTIONS, 2),
	parameterValue("Parameter Value", ParameterType.text, null, 3)
	;
	private ParameterElement element = new ParameterElement();
	
	SapParameterDefine(String label, ParameterType type, List<String> selectValues, int displayOrder) {
		element.setName(this.name());
		element.setLabel(label);
		element.setParameterType(type);
		element.setSelectValues(selectValues);
		element.setDisplayOrder(displayOrder);
	}

	public ParameterElement getElement() {
		return element;
	}
}
